<?php include("header.php"); ?>



<script type="text/javascript">

    function validate() {

        document.question.submit();

    }



</script>



	<div class="one_center">

		<div class="box_two_third">

			<div class="box_head"><?php if ($question->id) { echo _LB_EDIT_QUESTION; } else { echo _LB_ADD_QUESTION; } ?></div>

			<div class="box_content" >

				<form action="" name="question" method="post" enctype="multipart/form-data">

				<input type="hidden" id="id" name="id" value="<?php echo $question->id; ?>" />

				<input type="hidden" id="act" name="act" value="<?php echo ACT_VALID_EDIT; ?>"/>

				<table cellpadding="0" cellspacing="5px" border="0">

                                        <tr>

                                            <td width="20%"><?php echo _LB_QUESTION; ?>&nbsp;:&nbsp;<?php echo _LB_REQUIRE_FIELD; ?></td>

                                            <td>

                                                <input type="textbox" id="title" name="title" value="<?php echo $question->title; ?>" size="50" />

                                            </td>

                                        </tr>

                                        <?php if ($question->id && file_exists(APPLICATION_PATH.'/../images/'.$question->image)) { ?>

					<tr>

                                            <td></td>

                                            <td>

                                                <img src="<?php echo SITE_URL."/../images/".$question->image; ?>" alt="" />

                                            </td>

                                        </tr>

                                        <?php } ?>

					<tr>

						<td width="20%"><label><?php echo _LB_PICTURE; ?>&nbsp;:&nbsp;</label></td>

                                                <td><input type="file" name="image" id="image" size="50" /></td>

					</tr>

                                        <tr>

                                            <td></td>

                                            <td class="hint"><?php echo _LB_GET_THE_PICTURE_HINT; ?></td>

                                        </tr>

					

                    <tr>

					  	<td class="submit" colspan="2" style="padding-top: 10px;">

							  <a id="auto_port_return" class="tribullet" id="btnReturn" href="<?php echo $backlink; ?>"><?php echo _LB_BACK; ?></a>

							  <a id="auto_port_validate" class="tribullet" href="#" onclick="validate()"><?php echo _LB_VALIDATE; ?></a>

						</td>

					</tr>

				</table>

				</form>

			</div>

		</div>

	</div>



<?php include("footer.php"); ?>



